<?php
    // Is anyone connected ?
    if (isset($_SESSION['id']))
    {
        $page = 'account';
        $user = 'Bienvenue User';
        $deconnexionMessage = '<a href="index.php?p=log&a=logout">Deconnexion</a>';
    }
    else
    {
        $page = 'log';
        $user = 'Connexion';
        $deconnexionMessage = '';
    }
    
    // Displaying the view.
    require_once 'src/website/view/view_header.php';
?>
